import request from '@/utils/request'
const groupName = 'blog-goods'

export function goods(data) {
  return request({
    url: `/${groupName}/goods/${data}`,
    method: 'post'
  })
}

export function getGoods(data) {
  return request({
    url: `/${groupName}/getGoods/${data}`,
    method: 'get'
  })
}

export function cancelGoods(data) {
  return request({
    url: `/${groupName}/cancelGoods/${data}`,
    method: 'post'
  })
}
